<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateOrderPayGoodsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('order_pay_goods', function(Blueprint $table)
		{
			$table->integer('id', true);
			$table->integer('good_id')->nullable()->comment('订单商品表');
			$table->text('good_object', 65535)->nullable();
			$table->integer('order_pay_id')->nullable()->comment('支付订单id');
			$table->integer('buy_num')->nullable()->default(0);
			$table->decimal('good_price', 10)->nullable()->default(0.00)->comment('商品价格');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('order_pay_goods');
	}

}
